/*
 * @Author: 霍格沃兹测试开发学社
 * @Desc: '更多测试开发技术探讨，请访问：https://ceshiren.com/t/topic/15860'
 */

package com.ceshiren.aitestmini.converter;

import com.ceshiren.aitestmini.dto.HogwartsTestUserDTO;
import com.ceshiren.aitestmini.dto.JenkinsDTO;
import com.ceshiren.aitestmini.entity.HogwartsTestUser;
import com.ceshiren.aitestmini.entity.Jenkins;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

@Mapper(componentModel = "spring")
public interface JenkinsConverter {

    @Mappings({
            @Mapping(target = "jobName",source = "jobName"),
            @Mapping(target = "xmlpath",source = "xmlpath"),
            @Mapping(target = "param",source = "param")

    })
    public Jenkins userDTOForUser(JenkinsDTO jenkinsDTO);

}
